package com.dragon.codefx.dataBase.entity;

import com.dragon.common.JpaBean;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 数据库配置 实体类
 *
 * @author dragon
 * @version V1.0
 * @date 2025-6-20
 */
@Entity
@Table(name = "db_database_config")
@org.hibernate.annotations.Table(appliesTo = "db_database_config")
@Getter
@Setter
@ToString
@DynamicUpdate
@DynamicInsert
public class DatabaseConfigEntity extends JpaBean<DatabaseConfigEntity> {

    /**
     *别名 
     */
    @Column(columnDefinition = " varchar(255) ")
    private String label;


    /**
     *地址 
     */
    @Column(columnDefinition = " varchar(255)   ")
    private String url;


    /**
     *用户名 
     */
    @Column(columnDefinition = " varchar(255)    ")
    private String username;


    /**
     *密码 
     */
    @Column(columnDefinition = " varchar(255)    ")
    private String password;


    /**
     *端口 
     */
    @Column(columnDefinition = " varchar(255)   ")
    private String port;

    /**
     *类型 ,
     */
    @Column(columnDefinition = " varchar(255) ")
    private String type;
}